<?php

namespace App\Http\Requests\HotelReferral;

use App\Http\Requests\Request;

class UpdateHotelRReferralRequest extends Request
{
    /**
     * 验证通过
     *
     * @return bool
     */

    public function authorize()
    {
        return true;
    }

    /**
     * 验证规则
     *
     * @return array
     */
    public function rules()
    {
        return [
            'desc' => 'required|max:500',

        ];
    }

    /**
     * 自定义验证
     *
     * @return array
     */
    public function messages()
    {
        return [
            'desc.required'=>'描述信息不能为空',
            'desc.max'=>'字数不能大于500个',
        ];
    }


}
